//
//  OKCommitView.m
//  ZLFastDoctor
//
//  Created by answer on 16/5/26.
//  Copyright © 2016年 LS. All rights reserved.
//

#import "OKCommitView.h"

@implementation OKCommitView

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    if (self = [super initWithCoder:aDecoder]) {
        self.layer.borderColor = [UIColor lightGrayColor].CGColor;
        self.layer.borderWidth = 1;
        self.layer.cornerRadius = 5;
    }
    return self;
}

+ (instancetype)commitView {
    OKCommitView *view = [[[NSBundle mainBundle] loadNibNamed:@"OKCommitView" owner:nil options:nil] lastObject];
    
    view.layer.borderColor = [UIColor lightGrayColor].CGColor;
    view.layer.borderWidth = 1;
    view.layer.cornerRadius = 10;
    return view;
}

- (IBAction)cancelBtnClick:(UIButton *)sender {
    if ([self.delegate respondsToSelector:@selector(commitViewCallBackWith:)]) {
        [self.delegate commitViewCallBackWith:sender];
    }
}

- (IBAction)sureBtnClick:(UIButton *)sender {
    if ([self.delegate respondsToSelector:@selector(commitViewCallBackWith:)]) {
        [self.delegate commitViewCallBackWith:sender];
    }
}

@end








